Don't require glslc for vulkan
authorMatthias Clasen <mclasen@redhat.com>
Thu, 23 Mar 2017 12:29:08 +0000 (12:29 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 3 May 2017 14:10:55 +0000 (15:10 +0100)
The compiled shaders are checked into git.

meson.build

index 2efee4ab03560135cfab52f8d415dc78ed5331fa..caf80a7a08cd6ea80175ec80a55e4001a5704dfc 100644 (file)
@@ -341,13 +341,8 @@ enable_vulkan = get_option('enable-vulkan')
 if enable_vulkan != 'no'
   vulkan_lib = cc.find_library('vulkan', required : false)
   if vulkan_lib.found() and cc.has_function('vkCreateInstance', dependencies : vulkan_lib) and cc.has_header('vulkan/vulkan.h')
-    glslc = find_program('glslc', required : false)
-    if glslc.found()
-      have_vulkan = true
-      pc_gdk_extra_libs += ['-lvulkan']
-    else
-      error('Need glslc for Vulkan support. See https://github.com/google/shaderc or compile with -Denable-vulkan=no')
-    endif
+    have_vulkan = true
+    pc_gdk_extra_libs += ['-lvulkan']
   endif
 else
   message('Vulkan support explicitly disabled')